A functional electrical stimulation device for post-stroke rehabilitation